package List;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-04-04
 * Time:16:48
 */
public class Text1 {

    public static void main(String[] args) {
    SeqList lists=new SeqList();
    int i=0;
       while(i<10) {
           lists.add(i);
           i++;
       }
       lists.display();
       try {
           System.out.println(lists.get(-1));
       }
       catch(PosOutBoundsException kk)
       {
           System.out.println("下标错误");
           kk.printStackTrace();
       }
       finally
       {
           lists.clear();
       }
    }
}
